package com.carkeeper.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_blog")
public class Blog implements Serializable {

    @TableId(type = IdType.AUTO)
    private long id;
    private String title;
    private String cover;
    private long blogCategoryId;
    private int index;
    private String link;
    private String content;
    private int status;
    private String creator;
    private Date createTime;
    private Date updateTime;

    //增加属性
    @TableField(exist = false)
    private String blogCategoryName;
    //起始时间
    @TableField(exist = false)
    private Date startTime;
    //结束时间
    @TableField(exist = false)
    private Date endTime;
}
